﻿using System.Collections.Generic;
using System.DirectoryServices;

namespace XRM.ActiveDirectoryService
{
    public interface IActiveDirectoryService
    {
        bool Validate( string login, string password );
        List<ADUser> Search( string lastName, string firstName );
        List<ADUser> SearchByUserName( string userName );
        List<ADUser> SearchByFullName( string fullName );
        int Count( string fullName );
    }

    public interface IExtensiveActiveDirectoryService : IActiveDirectoryService
    {
        List<DirectoryEntry> GetDirectoryEntries( string lastName );
    }
}
